package net.csdn.business.common.domain.request.notify;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangyl
 * @date 2022/6/14 14:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserSendPrivateMsgDTO {

    /** 请求批次号 */
    //@NotBlank(message = "batchNum不能为空")
    private String batchNum;
    /** 接收者id */
    @NotBlank(message = "receiverId不能为空")
    private String receiverId;
    /** 消息内容 */
    @NotBlank(message = "message不能为空")
    @Length(min=1,max = 2000,message = "内容超过长度限制")
    private String content;
    private String currUserId;

}
